Welcome Guest | Sign in | Register
Java Basics - Java Programming Interview Questions and Answers | LucentBlackBoard | LucentBlackBoard.com

Home > Technical Interviews > Computer Science & Engineering > Java Programming > Java Basics Questions and Answers

96. Difference between Vector and ArrayList?

Vector is synchronized whereas arraylist is not.

97. Difference between Swing and Awt?

AWT are heavy-weight components. Swings are light-weight components. Hence swing works faster than AWT.

98. What will be the default values of all the elements of an array defined as an instance variable?

If the array is an array of primitive types, then all the elements of the array will be initialized to the default value corresponding to that primitive type.
Example: All the elements of an array of int will be initialized to 0(zero), while that of boolean type will be initialized to false. Whereas if the array is an array of references (of any type), all the elements will be initialized to null.




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.